package cqu.edu.cn;

import java.io.File;
import java.io.FileOutputStream;
import java.util.Scanner;

public class CCFImport {

	/**
	 * @param args
	 * @throws Throwable 
	 */
	public static void main(String[] args) throws Throwable {
		File f = new File("CCF.csv");
		FileOutputStream fos = new FileOutputStream("CCF_fin.csv");
		Scanner s = new Scanner(f);
		fos.write(new Magzine().getTitle().getBytes());
		while (s.hasNextLine()) {
			String str = s.nextLine();
			String[] strArr = str.split(",");
			Magzine m = new Magzine();
			m.grade = "2017";
			m.issn = "";
			m.magName = strArr[0];
			m.magType = "CCF";
			m.memo = str;
			m.oversea = "1";
			fos.write(m.toEXCEL().getBytes());
			
		}
		s.close();
		fos.close();
	}

}
